package my.framework.ssm.sample.common.enums;

/**
 * @author NuKi
 * @date 2018/11/24 14:46
 */
public enum ResultEnum {
    /**
     * 成功
     */
    SUCCESS("1", "成功"),
    /**
     * 默认异常
     */
    ERROR("-1", "系统异常");

    /**
     * 响应码
     */
    private String code;
    /**
     * 响应消息
     */
    private String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }}


